project(Raytracer)

#-----------------------------------------------------------------------------
# Requires a recent version of CMake
cmake_minimum_required(VERSION 2.6)

set(BoostComponents date_time
  filesystem
  program_options
  regex
  serialization
  signals
  system
  thread
  unit_test_framework)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")

find_package(Boost COMPONENTS ${BoostComponents} REQUIRED)
include_directories(SYSTEM ${Boost_INCLUDE_DIR})

include_directories ("${PROJECT_SOURCE_DIR}/libCore")
add_subdirectory (libCore)

include_directories ("${PROJECT_SOURCE_DIR}/libRaytracer")
add_subdirectory (libRaytracer)


include_directories ("${PROJECT_SOURCE_DIR}/lib3DObject")
add_subdirectory (lib3DObject)

set(SRCs main.cpp)

ADD_EXECUTABLE(raytracer ${SRCs})
TARGET_LINK_LIBRARIES(raytracer Raytracer)
